<!-- start: Container -->
<link rel="stylesheet" href="<?php echo $this->basePath(); ?>/templates/front/css/user.css">
<div class="page-header">
    <div class="row">
       <div class="col-lg-3 col-sm-3 col-md-3">
          <div class="header-menu-ver">Quản lý thông tin</div>
       </div>
        <div class="col-lg-9 col-sm-9 col-md-9">
         <div class="header-title-control">Thông tin cá nhân -> Đổi mật khẩu</div>
        </div>
    </div>
</div>

<div class="content-body" >


        <div class="row" style="margin-top: 20px;margin-bottom: 20px">
            <div class="col-sm-3 col-lg-3 col-md-3">
                <div class="sidebar-nav">
                    <div class="navbar navbar-default nav-userprofile" role="navigation">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-navbar-collapse">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <span class="visible-sm visible-xs navbar-brand">User menu</span>
                        </div>
                        <div class="navbar-collapse collapse sidebar-navbar-collapse">
                            <ul class="nav navbar-nav navbar-nav-vela">
                                <li><a href="/user/profile">Thông tin cá nhân</a></li>
                                <li><a href="/user/changepass">Thay đổi mật khẩu</a></li>
                                <li><a  href="/user/notice">Thông báo <span class="badge">1,118</span> </a></li>
                            </ul>
                        </div><!--/.nav-collapse -->
                    </div>
                </div>
            </div>

            <form action="/user/changepass" method="post" enctype="multipart/form-data" id="profile-form" name="profile-form" class="form require-validate">
            <div class="col-sm-6 col-lg-6 col-md-6">

                <?php if($result['notice_result'] == true){
                    echo '<div class="alert alert-success alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <strong>Success!</strong> Thay đổi mật khẩu thành công
                </div>';
                }
                 if($result['notice_repass'] == false){
                     echo '<div class="alert alert-danger alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <strong>Warning!</strong> Nhập lại mật khẩu không chính xác!
                </div>';
                 }
                if($result['notice_pass'] == false){
                    echo '<div class="alert alert-danger alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <strong>Warning!</strong> Mật khẩu cũ không chính xác!
                </div>';
                }
                ?>
                <div class="form-group group_validate">
                    <label>Mật khẩu cũ</label>
                    <input req="true" type="password" name="old_pass" id="name" class="form-control input-sm" value="">
                </div>
                <div class="form-group group_validate">
                    <label>Mật khẩu mới</label>
                    <input req="true" type="password" name="password" id="name" class="form-control input-sm" value="">
                </div>
                <div class="form-group group_validate">
                    <label>Nhập lại mật khẩu</label>
                    <input req="true" type="password" name="repassword" id="name" class="form-control input-sm" value="">
                </div>


                <div class="form-group">
                    <button type="submit" class="btn btn-danger" >Cập nhật mật khẩu</button>

                </div>
            </div>
            </form>
            <div class="col-sm-3 col-lg-3 col-md-3">

            </div>
        </div>


</div>
